package com.iflytek.aisol.audit.iflytek.strategy.manage.config;

/**
 * 自定义异常类
 */
public class CustomException extends RuntimeException {

    // 错误码
    private Integer code;

    // 默认构造器
    public CustomException(String message) {
        super(message);
    }

    // 带错误码的构造器
    public CustomException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    // 获取错误码
    public Integer getCode() {
        return code;
    }

    // 设置错误码
    public void setCode(Integer code) {
        this.code = code;
    }
}
